package priv.mill.xml;
import org.apache.log4j.Logger;

public class MyStaticFactory {

	private static final Logger logger = Logger
			.getLogger(MyStaticFactory.class);
	
	public static Car getCar(int type){
		if(type==1){
			Car car = new Car();
			Person p = new Person();
			p.setName("牛魔王");
			car.setP(p);
			return car;
		}
		return null;
		
	}
	public  Car getMyCar(int type){
		
		if(type==1){
			Car car = new Car();
			Person p = new Person();
			p.setName("牛魔王");
			car.setP(p);
			return car;
		}
		return null;
		
	}

}
